package com.ccmusic.service.impl;

import com.ccmusic.dao.PersonalListDao;
import com.ccmusic.dao.impl.PersonalListDaoImpl;
import com.ccmusic.entity.PersonalList;
import com.ccmusic.service.PersonalListService;
import com.ccmusic.util.DatatablesBean;

public class PersonalListServiceImpl implements PersonalListService {
	private PersonalListDao pld = new PersonalListDaoImpl();

	@Override
	public boolean addList(PersonalList pl) {
		return pld.addList(pl);
	}

	@Override
	public boolean delList(String lid) {
		return pld.delList(lid);
	}

	@Override
	public DatatablesBean<PersonalList> showPersonalLists(String uid) {
		DatatablesBean<PersonalList> dtb = new DatatablesBean<>(pld.showPersonalLists(uid));
		return dtb;
	}

}
